public class Texture {
    public static void main(String[] args) {
        int flag = 0;
        for (int i = 0; i <=100 ; i++) {
            if(i%10 == 9){
                flag++;
            }
            if(i/10 == 9){
                flag++;
            }
        }
        System.out.println(flag);
    }
}
